//
//  RVHeadView.m
//  RENTVISITOR
//
//  Created by wonder on 2017/9/8.
//  Copyright © 2017年 UNN. All rights reserved.
//

#import "RVHeadView.h"
#import "SDCycleScrollView.h"
#import "RentVieitor.h"

@implementation RVHeadView {
    
    SDCycleScrollView *_sycleView;
}

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self setUpView];
    }
    return self;
}


- (void) setUpView{
    
    _sycleView = [SDCycleScrollView cycleScrollViewWithFrame:CGRectMake(0, 0,KWidth , self.frame.size.height) delegate:nil placeholderImage:[UIImage imageNamed:@"loading.jpg"]];
//    _sycleView.currentPageDotImage = [UIImage imageNamed:@"purDot"];
//    _sycleView.pageDotImage = [UIImage imageNamed:@"whiteDot"];
    _sycleView.autoScroll = NO;
    
    [self addSubview:_sycleView];
    
    //    UIImageView  *titleView = [[UIImageView alloc] initWithFrame:CGRectMake(MWidth / 2  - 47, 0, 95, 22)];
    //    titleView.image = [UIImage imageNamed:@"titleView_ban"];
    //    [_sycleView addSubview:titleView];
    
    
    
    
}

- (void)showScrollView:(NSArray *)ImageArr{
    
    _sycleView.imageURLStringsGroup = ImageArr;
    
    
}




@end
